<template>
	<view class="item" @click="review()">
		<view class="icon">{{id}}</view>
		<view class="content">
			<view class="title">{{title}}</view>
			<view class="detail">{{detail}}</view>
		</view>
	</view>
</template>

<script>
	export default {
		props: ['title', 'id', 'detail'],
		methods: {
			review() {
				uni.navigateTo({
					url:"view?title=" + this.title + "&detail=" + this.detail + "&id="+this.id
				})
				console.log("review")
			}
		}
	}
</script>

<style>
	.item {
		display: flex;
		padding: 6px;
	}

	.icon {
		width: 60px;
		height: 60px;
		font-size: 20px;
	}

	.content {
		padding: 0 6px;
	}

	.title {
		font-size: 20px;
		color: #333333;
	}

	.detail {
		font-size: 16px;
		color: #666666;
	}
</style>